<template>
  <div>
    <header class="flex" id="header">
      <i class="iconfont icon-return" @click="toHome"></i>
      <h1>会员中心</h1>
      <i class="empty"></i>
    </header>
    <dl class="user_top">
      <dt> <img src="../../assets/img-detail/men.png"> </dt>
      <dd>
        <p>{{userName}}</p>
        <p>
          <span>掌柜：是</span>
        </p>
      </dd>
      <div class="user_top_list">
        <ul class="flex">
          <li>
            <a href="user.php?act=order_list">
              <strong>0</strong> <img src="../../assets/img-detail/vip1.png">
              <span>30天订单</span>
            </a>
          </li>
          <li>
            <a href="user.php?act=point">
              <strong>0</strong> <img src="../../assets/img-detail/vip2.png">
              <span>积分</span>
            </a>
          </li>
          <li>
            <a href="user.php?act=account_detail">
              <strong>0.00</strong> <img src="../../assets/img-detail/vip3.png">
              <span>余额</span>
            </a>
          </li>
          <li>
            <a class="fragment" href="user.php?act=bonus">
              <strong>0</strong> <img src="../../assets/img-detail/vip4.png">
              <span>红包</span>
            </a>
          </li>
        </ul>
      </div>
      <div class="quan1"></div>
      <div class="quan2"></div>
      <div class="quan3"></div>
    </dl>
    <div class="blank3"></div>
    <section class="wrap">
      <div class="list_box padd1 radius10" style="padding-top:0;padding-bottom:0;">
        <a href="distribute.php" class="clearfix">
          <span>分销中心</span>
          <i class="iconfont icon-enter"></i>
        </a>
      </div>
      <div class="blank3"></div>

      <div class="list_box padd1 radius10" style="padding-top:0;padding-bottom:0;">
        <a href="tel:0851-85826040" class="clearfix">
          <span>呼叫客服</span>
          <i class="iconfont icon-enter"></i>
        </a>
        <a href="user.php?act=profile" class="clearfix">
          <span>用户信息</span>
          <i class="iconfont icon-enter"></i>
        </a>
        <a href="user.php?act=qrcode" class="clearfix">
          <span>我的二维码</span>
          <i class="iconfont icon-enter"></i>
        </a>
        <a href="user.php?act=order_list" class="clearfix">
          <span>我的订单</span>
          <i class="iconfont icon-enter"></i>
        </a>
        <a href="user.php?act=back_list" class="clearfix">
          <span>退款/退货/维修</span>
          <i class="iconfont icon-enter"></i>
        </a>
        <a href="user.php?act=address_list" class="clearfix">
          <span>收货地址</span>
          <i class="iconfont icon-enter"></i>
        </a>
        <a href="user.php?act=collection_list" class="clearfix">
          <span>我的收藏</span>
          <i class="iconfont icon-enter"></i>
        </a>
      </div>
      <div class="blank3"></div>
      <div class="list_box padd1 radius10" style="padding-top:0;padding-bottom:0;">
        <a href="user.php?act=message_list" class="clearfix">
          <span>我的留言</span>
          <i class="iconfont icon-enter"></i>
        </a>
        <a href="user.php?act=comment_list" class="clearfix">
          <span>我的评论</span>
          <i class="iconfont icon-enter"></i>
        </a>
        <a href="user.php?act=user_card" class="clearfix">
          <span>会员卡</span>
          <i class="iconfont icon-enter"></i>
        </a>
      </div>
      <div class="blank3"></div>
      <div class="list_box padd1 radius10" style="padding-top:0;padding-bottom:0;" @click="gooutLogin">
        <a href="user.php?act=logout" class="clearfix">
          <span>退出登录</span>
          <i class="iconfont icon-enter"></i>
        </a>
      </div>
      <div class="content-footer">
        <div id="content" class="footer">
          <div class="in">
            <div class="search_box">
              <form method="post" action="search.php" name="searchForm" id="searchForm_id">
                <input name="keywords" type="text" id="keywordfoot">
                <i class="iconfont icon-search"></i>
              </form>
            </div>
            <a href="./" class="homeBtn">
              <span class="iconfont icon-homepage_fill"> </span>
            </a>
            <a href="#top" class="gotop">
              <span class="iconfont icon-packup"> </span>
              <p> TOP </p>
            </a>
          </div>
          <p class="link region">
            <a href="./"> 返回首页 </a>
            <a href="flow.php"> 购物车 </a>
            <a href="user.php"> 会员中心 </a>
            <a href="ectouch.php?act=contact"> 联系我们 </a>
          </p>
          <p class="region">© 2005-2019 任印网－联合创想企业旗下品牌 版权所有，并保留所有权利。 </p>
          <div class="favLink region">
            <a href="http://www.xpkj.net"> powered by 众合网络 </a>
          </div>
        </div>
      </div>
    </section>
  </div>

</template>

<script>
import ss from '../../Plug/session.js'
export default {
  name: "Vip",
  data() {
    return {
      userName:''
    };
  },
  mounted(){
    this.userName = ss.get().loginName
    console.log(ss.get())
  },
  methods: {
    toHome() {
      this.$router.push("/");
    },
    gooutLogin(){
      ss.clear()
    }
  }
};
</script>

<style scoped>
body{
  background-color: #ebeced;
}
a {
  color: #000000;
  text-decoration: none;
}
.clearfix:after {
  content: "";
  display: block;
  clear: both;
}
header {
  height: 48px;
  background: #ff3838;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header h1 {
  font-size: 18px;
  font-weight: normal;
  color: #fff;
}
.flex {
  display: flex;
  align-items: center;
}
.icon-return {
  margin-left: 12px;
}
.empty {
  margin-right: 12px;
}
.user_top {
  height: 170px;
  overflow: hidden;
  background: #ffbf6b;
  position: relative;
  margin-top: 48px;
}
.user_top dt {
  float: left;
  margin: 12px 12px 0;
  text-align: center;
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 60px;
  padding: 3px;
  background: #ffffff;
}
.user_top dt img {
  width: 60px;
  height: 60px;
  border-radius: 60px;
}
.user_top dd {
  color: #fff;
  margin-top: 22px;
}
.user_top dd span {
  font-size: 12px;
}
.user_top_list {
  height: 64px;
  overflow: hidden;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.5);
}
.user_top_list ul li {
  flex: 1;
  justify-content: center;
  position: relative;
  font-size: 12px;
}
.user_top_list ul li a {
  display: block;
  padding-top: 12px;
  height: 1.2re20px;
  display: block;
  position: relative;
  color: #666;
  text-decoration: none;
  width: 58px;
  margin: 0 auto;
  text-align: center;
}
.user_top_list ul li strong {
  position: absolute;
  right: 0;
  top: 3px;
  color: #fff;
  font-size: 12px;
  background: #ff3838;
  font-weight: normal;
  height: 20px;
  border-radius: 20px;
  padding: 0 6px;
}
.user_top_list ul li a img {
  width: 30px;
  height: 30px;
}
.user_top_list ul li a span {
  display: block;
}
.user_top .quan1 {
  position: absolute;
  right: 16px;
  top: 8px;
  width: 64px;
  height: 64px;
  border-radius: 48px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 10px rgba(250, 0, 0, 0.2);
}
.user_top .quan2 {
  position: absolute;
  right: 48px;
  top: 40px;
  width: 48px;
  height: 48px;
  border-radius: 48px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 10px rgba(250, 0, 0, 0.15);
}
.user_top .quan3 {
  position: absolute;
  right: 80px;
  top: 72px;
  width: 32px;
  height: 32px;
  border-radius: 48px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(250, 0, 0, 0.1);
}
.blank3 {
  height: 16px;
  line-height: 16px;
  clear: both;
  visibility: hidden;
}
.list_box {
  background: #fff;
  font-size: 12px;
  word-break: break-all;
  word-wrap: break-word;
}
.radius10 {
  border-radius: 10px;
}
.padd1 {
  padding: 8px;
}
.list_box a:last-child {
  border-bottom: none;
}
.list_box a {
  border-bottom: 1px solid #f3f3f3;
  padding: 12px 0;
  display: block;
  line-height: 23px;
}

.list_box a i {
  position: relative;
  margin-right: 3px;
  float: right;
  top: 3px;
}
/* 底部 */
.footer {
  padding: 0 9.6px 9.6px;
  color: #aaa;
  font-size: 9.6px;
  margin-top: 20px;
}

.footer .in {
  position: relative;
  height: 44.8px;
  margin: 0 -9.6px;
  padding: 0 56px;
  background-color: #B9B9B9;
}

.search_box {
  position: relative;
  top: 6.4px;
  width: 100%;
  background: #fff;
  border-radius: 20px;
  text-align: center;
}

form {
  display: block;
  margin: 0;
}

.search_box input {
  width: 85%;
  height: 32px;
  line-height: normal;
  border: none;
  font-size: 13px;
  outline: none;
}

.search_box i {
  font-size: 18px;
  position: absolute;
  top: 2px;
  right: 1px;
  width: 20px;
  height: 20px;
  border: none;

}

.footer .gotop,
.footer .homeBtn {
  background: #a1a1a1;
}

.homeBtn {
  left: 0;
}

.homeBtn,
.footer .gotop {
  position: absolute;
  top: 0;
  width: 44px;
  height: 44px;
  color: #fff;
  font-size: 11px;
}

.homeBtn span {
  font-size: 32px;
  position: absolute;
  left: 4.8px;
}

.footer .gotop {
  right: 0;
}

.footer .gotop,
.footer .homeBtn {
  background: #a1a1a1;
}

.footer .gotop span {
  font-size: 24px;
  position: absolute;
  left: 27%;
  top: 1.8px;
  width: 20px;
  height: 20px;
}

.footer .gotop p {
  position: absolute;
  bottom: 2.24px;
  left: 7.2px;
  width: 35px;
}

.footer .link {
  line-height: 16px;
  font-size: 11px;
  color: #1ca2e1;
}

.footer .link a {
  display: inline-block;
  margin-top: 4.8px;
  padding: 0 9.6px 0 4.8px;
  border-right: 1px solid #D5D5D5;
  color: #1CA2E1;
}

.footer .link a:last-child {
  border: none;
}

.footer .favLink,
.footer p {
  text-align: center;
  line-height: 20px;
}

.footer .favLink a {
  margin-right: 4.8px;
  color: #aaa;
}


</style>
